package org.csmzxy.class2333;

public class book_07 {
    public String title;
    public String author;
    public int pageCount;
    public book_07(String title, String author, int pageCount ){
        this.title=title;
        this.author=author;
        this.pageCount=pageCount;
    }
    //方法
    public void displayBookDetails(){
        System.out.println("书名："+title);
        System.out.println("作者："+author);
        //this.调用成员方法，就是类里面的方法
        this.displayPageCount();
    }
    public void displayPageCount(){
        System.out.println("页数："+pageCount);
    }
}
